package com.controller;

import com.component.CustomInfo;
import com.component.yhqProperties;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * @program: etodo
 * @description: getProp
 * @author: YinHaoQiu
 * @create: 2021-09-28
 **/
@Controller
public class controller {
    @Autowired
    com.component.yhqProperties yhqProperties;
    @Autowired
    CustomInfo CustomInfo;

    @ResponseBody
    @RequestMapping("/prop")
    public String getProp() {
        return yhqProperties.toString();
    }

    @ResponseBody
    @RequestMapping("/info")
    public String getInfo() {
        return CustomInfo.toString();
    }

}
